﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using sexhealth.console.service.post;
using sexhealth.console.service.post.vo;
public partial class usercontrol_IndexContentRight : System.Web.UI.UserControl
{
    PostService postService = new PostService();
    int channelId = 19;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            IList<PostVO> postList = postService.GetPostList(channelId);
            if (postList.Count > 0)
            {
                ltlContent.Text = postService.GetPostList(channelId)[0].HtmlContent;
            }
        }
    }
}
